import { createRouter, createWebHistory} from 'vue-router'
import Login from '@/component/Login.vue';
import Home from '@/component/Home.vue';
import Manager from '@/component/Manager.vue';
import Book from '@/component/Book.vue';
import Info from '@/component/Info.vue';
import SystemHome from '@/component/SystemHome.vue';
const routes = [
    { path: '/', component: Login, name: 'login' },

    {
        path: '/manager', component: Manager, name: 'manager' ,children: [
            {path:'book',component: Book,name:'book'},
            {path:'info',component: Info,name:'info'},
            { path: 'home', component: Home ,name: 'home' },
            {path:'SystemHome',component: SystemHome,name:'SystemHome'},
        ]},
]

//创建路由对象
export const router = createRouter({
    history: createWebHistory(),
    routes,
})
